Delete a ToolTip control
#include <GuiToolTip.au3>
_GUIToolTip_Destroy ( ByRef $hWnd )
| $hWnd | Handle to the ToolTip control (returned by _GUIToolTip_Create.) |
| Success: | True, $hWnd is set to 0. |
| Failure: | False, and @error set to 1 - Not Allowed to Destroy Other Applications' Control(s) 2 - $hWnd Not a Tooltip Control Handle |
#include <GUIConstantsEx.au3>
#include <GUIToolTip.au3>
Example()
Func Example()
Local $hGUI = GUICreate(StringTrimRight(@ScriptName, 4), 350, 200)
Local $iButton = GUICtrlCreateButton("This is a button", 30, 32, 130, 28)
Local $hButton = GUICtrlGetHandle($iButton)
; create a tooltip control using default settings
Local $hToolTip = _GUIToolTip_Create(0)
; add a tool to the tooltip control
_GUIToolTip_AddTool($hToolTip, 0, "This is a ToolTip", $hButton)
GUISetState()
While 1
If GUIGetMsg() = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
; Destroy the tooltip control
_GUIToolTip_Destroy($hToolTip)
GUIDelete($hGUI)
EndFunc ;==>Example